<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>AdminLTE 3 | Dashboard</title>

  <link href="/css/style.css" rel="stylesheet" type="text/css" >

  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/plugin/fontawesome-free/css/all.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Tempusdominus Bootstrap 4 -->
  <link rel="stylesheet" href="/plugin/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">
  <!-- iCheck -->
  <link rel="stylesheet" href="/plugin/icheck-bootstrap/icheck-bootstrap.min.css">
  <!-- JQVMap -->
  <link rel="stylesheet" href="/plugin/jqvmap/jqvmap.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="/dist/css/adminlte.min.css">
  <!-- overlayScrollbars -->
  <link rel="stylesheet" href="/plugin/overlayScrollbars/css/OverlayScrollbars.min.css">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="/plugin/daterangepicker/daterangepicker.css">
  <!-- summernote -->
  <link rel="stylesheet" href="/plugin/summernote/summernote-bs4.min.css">
</head>
<body class="hold-transition sidebar-mini layout-fixed">

<!-- 教师Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">修改个人信息</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <form id="formStudent">
          <!--          <input hidden="hidden" id="id" name="id">-->
          <!--          <div class="form-group">-->
          <!--            <label for="sno">学号</label>-->
          <!--            <input type="text" class="form-control" id="sno" aria-describedby="emailHelp" placeholder="Enter sno" name="sno">-->
          <!--          </div>-->
          <div class="form-group">
            <label for="tname">姓名</label>
            <input type="text" class="form-control" id="tname" aria-describedby="emailHelp" placeholder="Enter tname" name="tname">
          </div>

          <div class="form-group">
            <label for="sex">性别</label>
            <select class="form-control" id="sex" name="sex">
              <option value="男">男</option>
              <option value="女">女</option>
            </select>
          </div>

          <div class="form-group">
            <label for="tage">年龄</label>
            <input type="text" class="form-control" id="tage" aria-describedby="emailHelp" placeholder="Enter tage" name="tage">
          </div>

          <!--          <div class="form-group">-->
          <!--            <label for="password">密码</label>-->
          <!--            <input type="text" class="form-control" id="password" aria-describedby="emailHelp" placeholder="Enter password" name="password">-->
          <!--          </div>-->

          <!--          <div class="form-group">-->
          <!--            <label for="classid">班级号</label>-->
          <!--            <input type="text" class="form-control" id="classid" aria-describedby="emailHelp" placeholder="Enter classid" name="classid">-->
          <!--          </div>-->

          <!--          <div class="form-group">-->
          <!--            <label for="gradeid">年级号</label>-->
          <!--            <input type="text" class="form-control" id="gradeid" aria-describedby="emailHelp" placeholder="Enter gradeid" name="gradeid">-->
          <!--          </div>-->

          <!--          <div class="form-group">-->
          <!--            <label for="mid">专业编号</label>-->
          <!--            <input type="text" class="form-control" id="mid" aria-describedby="emailHelp" placeholder="Enter mid" name="mid">-->
          <!--          </div>-->

        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" onclick="updatePer()">更改</button>
        <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
</div>



<div class="wrapper">

  <!-- Preloader -->
  <div class="preloader flex-column justify-content-center align-items-center">
    <img class="animation__shake" src="/dist/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60">
  </div>

  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
<!--      <li class="nav-item d-none d-sm-inline-block">-->
<!--        <a href="index3.html" class="nav-link">Home</a>-->
<!--      </li>-->
<!--      <li class="nav-item d-none d-sm-inline-block">-->
<!--        <a href="#" class="nav-link">Contact</a>-->
<!--      </li>-->
    </ul>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
      <!-- Navbar Search -->
      <li class="nav-item">
        <a class="nav-link" data-widget="navbar-search" href="#" role="button">
          <i class="fas fa-search"></i>
        </a>
        <div class="navbar-search-block">
          <form class="form-inline">
            <div class="input-group input-group-sm">
              <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
              <div class="input-group-append">
                <button class="btn btn-navbar" type="submit">
                  <i class="fas fa-search"></i>
                </button>
                <button class="btn btn-navbar" type="button" data-widget="navbar-search">
                  <i class="fas fa-times"></i>
                </button>
              </div>
            </div>
          </form>
        </div>
      </li>

      <!-- Messages Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
<!--          <i class="far fa-comments"></i>-->
          <svg t="1673341366635" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3235" width="16" height="16"><path d="M722.995 541.05c83.58-43.31 140.734-130.544 140.734-231.177 0-143.755-116.537-260.28-260.28-260.28-143.75 0-260.286 116.53-260.286 260.28 0 99.425 55.772 185.8 137.718 229.632-174.065 52.06-303.135 214.753-298.814 399.728 0 36.46 49.29 31.447 49.29 1.808 0-204.831 166.052-370.883 370.888-370.883 204.83 0 370.883 166.057 370.883 370.883 0 24.852 43.269 21.1 43.269-1.808 4.08-183.219-122.122-344.448-293.402-398.182zM599.24 522.06c-5.028 0-10.015 0.206-15.007 0.39-108.754-9.15-194.181-100.26-194.181-211.38 0-117.191 95.001-212.187 212.193-212.187 117.192 0 217.487 95.001 217.487 212.188 0 111.641-91.033 203.08-200.975 211.497a411.674 411.674 0 0 0-19.517-0.507zM336.43 552.05c0.338 0 0.67 0.025 1.004 0.025 30.56 0 31.221-49.643-1.004-49.643-0.824 0-1.638-0.046-2.463-0.057l-0.046-0.937c-4.29 0-8.53 0.18-12.764 0.343-91.105-7.214-167.004-78.284-167.004-170.741 0-97.587 84.536-176.691 182.277-176.691 32.277 0 23.772-41.048-9.595-41.048-119.9 0-217.093 97.04-217.093 216.735 0 79.55 47.631 151.383 114.76 190.659C91.397 569.42 3.676 704.722 7.168 854.103c0 30.372 46.403 26.189 46.403 1.505 0-170.562 112.015-303.534 282.86-303.534v-0.025z" fill="" p-id="3236"></path></svg>
<!--          <span class="badge badge-danger navbar-badge">3</span>-->
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <a href="#" class="dropdown-item" onclick="queryInfo();">
            <!-- Message Start -->
            <div class="media">
              <img src="/dist/img/yuan.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle">
              <div class="media-body">
                <h3 class="dropdown-item-title ">
                  <span class="float-right text-sm text-danger teachername"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">个人信息</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i>（修改信息请点击）</p>
              </div>
            </div>
            <!-- Message End -->
          </a>

<!--          <div class="dropdown-divider"></div>-->
<!--          -->
<!--          <a href="#" class="dropdown-item">-->
<!--            &lt;!&ndash; Message Start &ndash;&gt;-->
<!--            <div class="media">-->
<!--              <img src="/dist/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">-->
<!--              <div class="media-body">-->
<!--                <h3 class="dropdown-item-title">-->
<!--                  John Pierce-->
<!--                  <span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>-->
<!--                </h3>-->
<!--                <p class="text-sm">I got your message bro</p>-->
<!--                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>-->
<!--              </div>-->
<!--            </div>-->
<!--            &lt;!&ndash; Message End &ndash;&gt;-->
<!--          </a>-->
<!--          <div class="dropdown-divider"></div>-->
<!--          <a href="#" class="dropdown-item">-->
<!--            &lt;!&ndash; Message Start &ndash;&gt;-->
<!--            <div class="media">-->
<!--              <img src="/dist/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">-->
<!--              <div class="media-body">-->
<!--                <h3 class="dropdown-item-title">-->
<!--                  Nora Silvester-->
<!--                  <span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>-->
<!--                </h3>-->
<!--                <p class="text-sm">The subject goes here</p>-->
<!--                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>-->
<!--              </div>-->
<!--            </div>-->
<!--            &lt;!&ndash; Message End &ndash;&gt;-->
<!--          </a>-->
<!--          <div class="dropdown-divider"></div>-->
<!--          <a href="#" class="dropdown-item dropdown-footer">See All Messages</a>-->
        </div>
      </li>


      <!-- Notifications Dropdown Menu -->
<!--      <li class="nav-item dropdown">-->
<!--        <a class="nav-link" data-toggle="dropdown" href="#">-->
<!--&lt;!&ndash;          <i class="far fa-bell"></i>&ndash;&gt;-->
<!--&lt;!&ndash;          <span class="badge badge-warning navbar-badge">15</span>&ndash;&gt;-->
<!--        </a>-->
<!--        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">-->
<!--          <span class="dropdown-item dropdown-header">15 Notifications</span>-->
<!--          <div class="dropdown-divider"></div>-->
<!--          <a href="#" class="dropdown-item">-->
<!--            <i class="fas fa-envelope mr-2"></i> 4 new messages-->
<!--            <span class="float-right text-muted text-sm">3 mins</span>-->
<!--          </a>-->
<!--          <div class="dropdown-divider"></div>-->
<!--          <a href="#" class="dropdown-item">-->
<!--            <i class="fas fa-users mr-2"></i> 8 friend requests-->
<!--            <span class="float-right text-muted text-sm">12 hours</span>-->
<!--          </a>-->
<!--          <div class="dropdown-divider"></div>-->
<!--          <a href="#" class="dropdown-item">-->
<!--            <i class="fas fa-file mr-2"></i> 3 new reports-->
<!--            <span class="float-right text-muted text-sm">2 days</span>-->
<!--          </a>-->
<!--          <div class="dropdown-divider"></div>-->
<!--          <a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>-->
<!--        </div>-->
<!--      </li>-->
      <li class="nav-item">
        <a class="nav-link" data-widget="fullscreen" href="#" role="button">
          <i class="fas fa-expand-arrows-alt"></i>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="control-sidebar" data-controlsidebar-slide="true" href="#" role="button">
          <i class="fas fa-th-large"></i>
        </a>
      </li>
    </ul>
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
<!--    <a href="index3.html" class="brand-link">-->
<!--      <img src="/dist/img/xue.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">-->
<!--      <span class="brand-text font-weight-light">学生成绩管理系统</span>-->
<!--    </a>-->

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="/dist/img/yuan.jpg" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="#" class="d-block teachername"></a>
        </div>
      </div>

      <!-- SidebarSearch Form -->
      <div class="form-inline">
        <div class="input-group" data-widget="sidebar-search">
          <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
          <div class="input-group-append">
            <button class="btn btn-sidebar">
              <i class="fas fa-search fa-fw"></i>
            </button>
          </div>
        </div>
      </div>

      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
          <li class="nav-item">
            <a href="/mypage/shouyeteacher.html" class="nav-link" onclick="return indexLocation(this);">
              <i class="nav-icon fas fa-book"></i>
              <p>
                首页
                <!--                <i class="fas fa-angle-left right"></i>-->
              </p>
            </a>
            <ul class="nav nav-treeview">
              <!--              <li class="nav-item">-->
              <!--                <a href="pages/examples/invoice.html" class="nav-link" >-->
              <!--                  <i class="far fa-circle nav-icon"></i>-->
              <!--                  <p>Invoice</p>-->
              <!--                </a>-->
              <!--              </li>-->
              <!--              <li class="nav-item">-->
              <!--                <a href="pages/examples/profile.html" class="nav-link">-->
              <!--                  <i class="far fa-circle nav-icon"></i>-->
              <!--                  <p>Profile</p>-->
              <!--                </a>-->
              <!--              </li>-->
              <!--              <li class="nav-item">-->
              <!--                <a href="pages/examples/e-commerce.html" class="nav-link">-->
              <!--                  <i class="far fa-circle nav-icon"></i>-->
              <!--                  <p>E-commerce</p>-->
              <!--                </a>-->
              <!--              </li>-->
              <!--              <li class="nav-item">-->
              <!--                <a href="pages/examples/projects.html" class="nav-link">-->
              <!--                  <i class="far fa-circle nav-icon"></i>-->
              <!--                  <p>Projects</p>-->
              <!--                </a>-->
              <!--              </li>-->
              <!--              <li class="nav-item">-->
              <!--                <a href="pages/examples/project-add.html" class="nav-link">-->
              <!--                  <i class="far fa-circle nav-icon"></i>-->
              <!--                  <p>Project Add</p>-->
              <!--                </a>-->
              <!--              </li>-->
              <!--              <li class="nav-item">-->
              <!--                <a href="pages/examples/project-edit.html" class="nav-link">-->
              <!--                  <i class="far fa-circle nav-icon"></i>-->
              <!--                  <p>Project Edit</p>-->
              <!--                </a>-->
              <!--              </li>-->
              <!--              <li class="nav-item">-->
              <!--                <a href="pages/examples/project-detail.html" class="nav-link">-->
              <!--                  <i class="far fa-circle nav-icon"></i>-->
              <!--                  <p>Project Detail</p>-->
              <!--                </a>-->
              <!--              </li>-->
              <!--              <li class="nav-item">-->
              <!--                <a href="pages/examples/contacts.html" class="nav-link">-->
              <!--                  <i class="far fa-circle nav-icon"></i>-->
              <!--                  <p>Contacts</p>-->
              <!--                </a>-->
              <!--              </li>-->
              <!--              <li class="nav-item">-->
              <!--                <a href="pages/examples/faq.html" class="nav-link">-->
              <!--                  <i class="far fa-circle nav-icon"></i>-->
              <!--                  <p>FAQ</p>-->
              <!--                </a>-->
              <!--              </li>-->
              <!--              <li class="nav-item">-->
              <!--                <a href="pages/examples/contact-us.html" class="nav-link">-->
              <!--                  <i class="far fa-circle nav-icon"></i>-->
              <!--                  <p>Contact us</p>-->
              <!--                </a>-->
              <!--              </li>-->
            </ul>
          </li>


          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                师生信息
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="/mypage/liststudent.html" class="nav-link  page1" data-skip-view="学生信息" onclick="return indexLocation(this);">
                  <i class="far fa-circle nav-icon"></i>
                  <p class="yemian">学生信息</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/mypage/teacherper.html" class="nav-link page2" onclick="return indexLocation(this);" >
                  <i class="far fa-circle nav-icon"></i>
                  <p class="yemian">教师信息</p>
                </a>
              </li>
            </ul>
          </li>

          <!--科目成绩管理-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-chart-pie"></i>
              <p>
                科目成绩管理
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="/mypage/classinfoteacher.html" class="nav-link" onclick="return indexLocation(this);">
                  <i class="far fa-circle nav-icon"></i>
                  <p>课程信息</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/mypage/listteacher.html" class="nav-link" onclick="return indexLocation(this);">
                  <i class="far fa-circle nav-icon"></i>
                  <p>班级科目成绩</p>
                </a>
              </li>
            </ul>
          </li>


          <!--统计-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-edit"></i>
              <p>
                统计
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="/mypage/subjectStatic.html" class="nav-link" onclick="return indexLocation(this);">
                  <i class="far fa-circle nav-icon"></i>
                  <p>班级科目成绩统计</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/mypage/subjectCompare.html" class="nav-link" onclick="return indexLocation(this);">
                  <i class="far fa-circle nav-icon"></i>
                  <p>班级科目对比统计</p>
                </a>
              </li>
            </ul>
          </li>

         <!--其他信息-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon far fa-envelope"></i>
              <p>
                其他信息
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="/mypage/dept.html" class="nav-link" onclick="return indexLocation(this);">
                  <i class="far fa-circle nav-icon"></i>
                  <p>院系信息</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/mypage/major.html" class="nav-link" onclick="return indexLocation(this);">
                  <i class="far fa-circle nav-icon"></i>
                  <p>专业信息</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/mypage/class.html" class="nav-link" onclick="return indexLocation(this);">
                  <i class="far fa-circle nav-icon"></i>
                  <p>班级信息</p>
                </a>
              </li>
            </ul>
          </li>

          <!--账户管理-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-table"></i>
              <p>
                账户管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="/mypage/updateteacherpass.html" class="nav-link" onclick="return indexLocation(this);">
                  <i class="far fa-circle nav-icon"></i>
                  <p>修改密码</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/exitlogin" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>退出登录</p>
                </a>
              </li>
            </ul>
          </li>


          
        </ul>


      </nav>
      <!-- /.sidebar-menu -->


    </div>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <iframe src="/mypage/shouyeteacher.html" frameborder="0" id="myiframe"></iframe>
  </div>
  
    <!-- /.content-header -->

     
  <!-- /.content-wrapper -->
<!--  <footer class="main-footer">-->
<!--    <strong>Copyright &copy; 2014-2021 <a href="https://adminlte.io">AdminLTE.io</a>.</strong>-->
<!--    All rights reserved.-->
<!--    <div class="float-right d-none d-sm-inline-block">-->
<!--      <b>Version</b> 3.2.0-->
<!--    </div>-->
<!--  </footer>-->

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->

<!-- jQuery -->
<script src="/plugin/jquery/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="/plugin/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="/plugin/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- ChartJS -->
<script src="/plugin/chart.js/Chart.min.js"></script>
<!-- Sparkline -->
<script src="/plugin/sparklines/sparkline.js"></script>
<!-- JQVMap -->
<script src="/plugin/jqvmap/jquery.vmap.min.js"></script>
<script src="/plugin/jqvmap/maps/jquery.vmap.usa.js"></script>
<!-- jQuery Knob Chart -->
<script src="/plugin/jquery-knob/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="/plugin/moment/moment.min.js"></script>
<script src="/plugin/daterangepicker/daterangepicker.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="/plugin/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Summernote -->
<script src="/plugin/summernote/summernote-bs4.min.js"></script>
<!-- overlayScrollbars -->
<script src="/plugin/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
<!-- AdminLTE App -->
<script src="/dist/js/adminlte.js"></script>
<script src="/myjs/index.js"></script>

<script>
  // 根据登录session获取登录名
  function queryName(){
    $.ajax({
      url:"/webapi/teacher/queryinfo"
    }).done(function (rs){
      $(".teachername").text(rs.data.tname);
    })
  }
  $(function (){
    queryName();
  })

  // 弹出Modal
  function queryInfo(){
    //显示模态框
    $("#exampleModal").modal("show");

    $.ajax({
      url:"/webapi/teacher/queryinfo"
    }).done(function (rs){
      $("#tname").val(rs.data.tname);
      $("#sex").val(rs.data.sex);
      $("#tage").val(rs.data.tage);
    })
  }
  function updatePer(){
    let tname = $("#tname").val();
    let sex = $("#sex").val();
    let tage = $("#tage").val();

    $.ajax({
      url: "/webapi/teacher/updateper",
      method: "post",
      data:{
        tname:tname,
        sex:sex,
        tage:tage
      }
    }).done(function (rs){
      if (rs.code === 200){
        //显示模态框
        $("#exampleModal").modal("hide");
        alert(rs.msg);
      }
    })
  }
</script>
</body>
</html>